Tadalafil is a prescription medication taken on a regular schedule to treat erectile dysfunction, an enlarged prostate (benign prostatic hyperplasia), or both conditions simultaneously.